<template>
  <div class="app-page-main-header">
    <slot name="header"></slot>
  </div>
  <div class="app-page-main-body">
    <el-scrollbar>
      <slot></slot>
    </el-scrollbar>
  </div>
  <div class="app-page-main-footer">
    <slot name="footer"></slot>
  </div>
</template>

<script>
export default {
  name: 'AppPageMain',
  components: {},
  props: {
    isCard: {
      type: Boolean,
      default: false,
    },
  },

  data() {
    return {}
  },

  computed: {
    pageClass() {
      let pageClass = {
        'app-page': true,
      }
      if (this.isCard) pageClass['app-page-card'] = true

      return pageClass
    },
  },

  watch: {},

  created() {},

  methods: {},
}
</script>

<style lang="scss" scoped>
</style>
